//
//  UserDefaultsTool.h
//  谭伟
//
//  Created by 谭伟 on 2017/1/15.
//  Copyright © 2017年 谭伟. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UserDefaultsTool : NSObject

//保存bool到偏好设置
+ (void)saveBool:(BOOL)boolean forKey:(NSString *)key;
//读取bool从偏好设置
+ (BOOL)boolForKey:(NSString *)key;

//保存对象到偏好设置
+(void)saveObject:(id)object forKey:(NSString *)key;
//读取对象到从偏好设置
+(id)objetForKey:(NSString *)key;

+ (void)removeForKey:(NSString *)key;
//删除所有偏好
+ (void)removeAllKey;

@end
